package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sysDictData", description="字典实体类")
@TableName(value = "sys_dict_data")
public class SysDictData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典编码")
    @TableId(value = "dict_code", type = IdType.AUTO)
    @TableField(value = "dict_code")
    private Integer dictCode;

    @ApiModelProperty(value = "字典排序")
    @TableField(value = "dict_sort")
    private Integer dictSort;

    @ApiModelProperty(value = "字典标签")
    @TableField(value = "dict_label")
    private String dictLabel;

    @ApiModelProperty(value = "字典键值")
    @TableField(value = "dict_value")
    private String dictValue;

    @ApiModelProperty(value = "字典类型")
    @TableField(value = "dict_type")
    private String dictType;

    @ApiModelProperty(value = "样式属性（其他样式扩展）")
    @TableField(value = "css_class")
    private String cssClass;

    @ApiModelProperty(value = "表格回显样式")
    @TableField(value = "list_class")
    private String listClass;

    @ApiModelProperty(value = "是否默认（Y是 N否）")
    @TableField(value = "is_default")
    private String isDefault;

    @ApiModelProperty(value = "状态（0正常 1停用）")
    @TableField(value = "status")
    private String status;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;


}
